package com.zx.mylame.jni;

/**
 * Created by zhoux on 2017/5/16.
 * 注释：
 */

public class JniUtils {

    static {
        System.loadLibrary("native-lib");
    }

    public native void convertmp3(String wav, String mp3);

    public native String getLameVersion();

    public native void stop();

    public void setConvertProgress(int progress) {
        if (mCallBack != null) {
            mCallBack.setProgress(progress);

        }
    }

    CallBack mCallBack;//jin回调

    public void setmCallBack(CallBack mCallBack) {
        this.mCallBack = mCallBack;
    }

    public interface CallBack {

        void setProgress(int progress);
    }
}
